#!/usr/bin/env python
# -*- coding: utf-8 -*-

import threading
import time



def fun_timer_once():
	print('Hello Timer once.')

def fun_timer():
	print('fun_timer.')
	global jtimer_g
	
	jtimer_g = threading.Timer(5.5, fun_timer)
	jtimer_g.start()

if __name__ == '__main__':      
	timer_once=threading.Timer(4,fun_timer_once)
	timer_once.start()
	fun_timer()
	time.sleep(20)
	jtimer_g.cancel()
